local thbattle__sp_fulanduolu_sichongcunzai = fk.CreateSkill {

  name = "thbattle__sp_fulanduolu_sichongcunzai",

  tags = {  },

}



thbattle__sp_fulanduolu_sichongcunzai:addEffect(fk.DamageInflicted, {
  prompt = "#thbattle__sp_fulanduolu_sichongcunzai",
  anim_type = "defensive",
  can_trigger = function(self, event, target, player, data)
    return target == player and player:hasSkill(thbattle__sp_fulanduolu_sichongcunzai.name) and data.damage <= player.hp
  end,
  on_use = function(self, event, target, player, data)
    local room = player.room
    room:changeMaxHp(player, -1)
    data:preventDamage()
  end
})

thbattle__sp_fulanduolu_sichongcunzai:addEffect(fk.DamageCaused, {
  prompt = "#thbattle__sp_fulanduolu_sichongcunzai_damage-prompt",
  anim_type = "defensive",
  can_trigger = function(self, event, target, player, data)
    return target == player and player:hasSkill(thbattle__sp_fulanduolu_sichongcunzai.name) and data.card and player.hp == 1
  end,
  on_use = function(self, event, target, player, data)
    local room = player.room
    data.damage = (data.damage or 0) + 1
  end
})

return thbattle__sp_fulanduolu_sichongcunzai